<h1>Login</h1>
<div class="form">
  <%= error_messages_for :user %>
    <%= flash_notice %>
    
  <fieldset>
    <legend>Sign-in to start trading</legend>
    <% form_for :user, :url => { :action => "authenticate"} do |form| %>

     <div>
        <%= form.label :user_name %>: <br/>
        <%= form.text_field :user_name, :class => "short" %>
      </div>
      
      <div>
        <%= form.label :password %>: <br/>
        <%= form.password_field :password, :class => "short" %>
      </div>

      
        <%= submit_tag "Submit"  %>
    
    <% end %>
  </fieldset>
</div>
